import CurrentReserveOrder from "../components/CurrentReserveOrder/CurrentReserveOrder";
import * as actions from "../actions/currentOrderAction";
import {connect} from "react-redux";

const mapStateToProps = (state) => ({
    reserveOrder: state.currentReserveOrder
});
const mapDispatchToProps = (dispatch) => ({
    cancel: (id) => (dispatch(actions.cancel(id))),
    join: (id) => (dispatch(actions.join(id)))
});
export default connect(mapStateToProps, mapDispatchToProps)(CurrentReserveOrder);